package com.sx.shop.mapper;

import com.sx.shop.entity.Category;
import com.sx.shop.vo.CategoryTreeVo;

import java.util.List;

public interface CategoryMapper
{
    public int addCateGory(Integer pId, String name);
    public int updateCateGory(Category category);
    public int delete(Integer id);
    //模糊
    public List<Category>selectCategory(String keyword);
    public Category selectById(Integer id);
    public List<Category>selectAll();
    public List<Category>selectByParentId(Integer pId);
    public List<CategoryTreeVo> selectCategoryTree(Integer productId);
}
